///////////////////////////////////////////////////////////
//  BackCheckListCommand.cpp
//  Implementation of the Class BackCheckListCommand
//  Created on:      21-Sep-2013 12:07:37 PM
//  Original author: Jakkaphan Aiemcharoenjit
///////////////////////////////////////////////////////////

#include "BackCheckListCommand.h"
#include "CurrentCommand.h"

using namespace UI;
using namespace UI::CMD;

BackCheckListCommand::BackCheckListCommand(CCreateCheckListView* createCheckList, CTemplateView* _template, CCheckListView* checkList)
{
  this->m_type = ICommand::BACKCHECKLIST_CMD;
  this->m_createCheckListView = createCheckList;
  this->m_templateView = _template;
  this->m_checkListView = checkList;
}


BackCheckListCommand::~BackCheckListCommand()
{

}


void BackCheckListCommand::Execute()
{

  // Set current command
  CurrentCommand::GetInstance()->SetCurrentCommand(this->m_type);
}


ICommand::CommandType BackCheckListCommand::GetType()
{
	return  this->m_type;
}